<?php 
$gallery->setTitle('Gallary');
$gallery->setColumns(4);
$gallery->setGalleryItems($assets);
$gallery->setGalleryElement('gallery_plain'); // set element name here, comment this line for default
$gallery->setImageOptions(array('clickable'=>true, 'img_size'=>'medium'));
echo $gallery->output();
?>
<?php echo $paginator->options(array('url'=>$this->passedArgs));?>
<?php echo $paginator->numbers();?>